package com.css.apps.base.user.action.login;

import com.css.apps.base.security.model.SecurityParam;
import com.css.apps.base.security.service.SecurityService;
import com.css.util.Ajax;
import com.css.webbase.webwork.action.AbstractAction;
import com.opensymphony.xwork.Action;

@SuppressWarnings("serial")
public class GetLoginStyle extends AbstractAction {

	protected String go() {
		String loginStyle = SecurityService.getParamValue(SecurityParam.LOGIN_STYLE);
		if ("1".equals(loginStyle)) {
			result = Ajax.JSONResult(1, "");
			return Action.ERROR;
		} else {
			result = Ajax.JSONResult(0, "");
			return Action.SUCCESS;
		}
	}

}
